#include "AP_Motors_Sim.h"

AP_Motors_Sim::MotorOutputCallback AP_Motors_Sim::_motor_callback = nullptr;

void AP_Motors_Sim::set_motor_output_callback(MotorOutputCallback callback) {
    _motor_callback = callback;
}

void AP_Motors_Sim::output_motor(int motor_num, float output) {
    if (_motor_callback) {
        _motor_callback(motor_num, output);
    }
}